package cn.mily.user.service;

import cn.mily.basics.exception.UtilException;
import cn.mily.basics.service.IBasicService;
import cn.mily.user.domain.User;
import cn.mily.user.domain.dto.RegInfoDto;



public interface IUserService extends IBasicService<User> {
    /* 检查手机号是否注册 */

    /**
     * 检查手机号
     * @param phone
     */
    void checkPhone(String phone) throws Exception;

    /**
     * 注册用户
     * @param regInfo
     * @throws UtilException
     */
    void registerUser(RegInfoDto regInfo) throws UtilException;

    /**
     *  邮箱发送验证码
     * @param email
     */
    void sendByEmail(String email);
}
